import 'package:tuya_home_sdk_flutter/tuya_home_sdk_flutter.dart';

class TuyaCategoryDetailState {
  ThingSmartDeviceCategoryModel data;
  String pid;

  TuyaCategoryDetailState({required this.data, required this.pid});

  TuyaCategoryDetailState copyWith({
    ThingSmartDeviceCategoryModel? data,
    String? pid,
  }) {
    return TuyaCategoryDetailState(
      data: data ?? this.data,
      pid: pid ?? this.pid,
    );
  }

  factory TuyaCategoryDetailState.initial() =>
      TuyaCategoryDetailState(data: ThingSmartDeviceCategoryModel(), pid: '');
}
